export function extend<T, K>(obj: T, extension: K) {
    for(let key in obj) {
        // @ts-ignore
        extension[key] = obj[key];
    }
}